#ifndef book_info_H
#define book_info_H

#include <string>

/*
- Books (图书)
    ID (主键)
    Title (书名)
    Author (作者)
    Publisher (出版社)
    PublishDate (出版日期)
    Quantity (图书数量)
*/
struct BookInfo{
    std::string ID;
    std::string Title;
    std::string Author;
    std::string Publisher;
    time_t PublishDate;
    int Quantity;
};


/*
- Purchases (采购记录)
    PurchaseID (主键)
    BookID (外键，关联到Books)
    Quantity (数量)
    Date (采购日期)
    Price (单价)
*/

struct PurchaseInfo{
    int PurchaseID;
    std::string BookID;
    int Quantity;
    time_t Date;
    double Price;
};


/*
- Discards (淘汰记录)
    DiscardID (主键)
    BookID (外键，关联到Books)
    Quantity (数量)
    Date (淘汰日期)
*/


struct DiscardInfo{
    int DiscardID;
    std::string BookID;
    int Quantity;
    time_t Date;
};

/*
- Borrows (租借记录)
    BorrowID (主键)
    BookID (外键，关联到Books)
    UserID (借阅者ID)
    BorrowDate (借出日期)
    ReturnDate (应还日期/实际归还日期)
    Status (状态: 已借出, 已归还, 逾期未还)
*/

struct BorrowInfo{
    int BorrowID;
    std::string BookID;
    std::string UserID;
    time_t BorrowDate;
    time_t ReturnDate;
    std::string Status;
};

#endif